package com.meilai.project.entity.business.contract;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author xchen
 * @since 2022-06-08
 */
@Data
@TableName("contract_pay_detail")
@ApiModel(value = "ContractPayDetail对象", description = "")
public class ContractPayDetail {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键 ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "合同id")
    private Long contract_id;

    @ApiModelProperty(value = "付款时间")
    private LocalDate pay_time;

    @ApiModelProperty(value = "付款金额")
    private BigDecimal pay_amount;

    @ApiModelProperty(value = "1：现金，2：置换")
    private Integer pay_type;


    public static final String PAY_TIME = "pay_time";

    public static final String PAY_AMOUNT = "pay_amount";

    public static final String PAY_TYPE = "pay_type";

}
